//============================================================
//write by bxl at 2019-09-10 18:10:52
//============================================================

using BCCommon.CRMEnums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.CRM.CustomerInfo
{

    /// <summary>
    /// 客户信息
    /// </summary>
    public class CustomerInfoRequestDto
    {
        /// <summary>
        /// 客户姓名
        /// </summary>
        [Display(Name = "客户姓名")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string UserName { get; set; }
        /// <summary>
        /// 客户电话
        /// </summary>
        [Display(Name = "客户电话")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Phone { get; set; }
        /// <summary>
        /// 客户邮件
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 客户性别
        /// </summary>
        [Display(Name = "客户性别")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public CRMSex Sex { get; set; }
        /// <summary>
        /// 客户来源类型
        /// </summary>
        [Display(Name = "客户来源类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public CRMResourceType ResourceType { get; set; }
        /// <summary>
        /// 客户分类
        /// </summary> 
        [Display(Name = "客户分类")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public CRMCustomerCategory CustomerCategory { get; set; }
        /// <summary>
        /// 省份编码
        /// </summary>
        [Display(Name = "省份编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 市Id
        /// </summary>
        [Display(Name = "市Id")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CityCode { get; set; }
        /// <summary>
        /// 县Id
        /// </summary>
        [Display(Name = "县Id")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CountyCode { get; set; }
        /// <summary>
        /// 客户地址
        /// </summary>
        [Display(Name = "客户地址")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Address { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        public string IdentityCardNo { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public DateTime Birthday { get; set; }

        /// <summary>
        /// 客户类型r  '非客户、潜在客户、目标客户、现实客户、流失客户
        /// </summary>
        [Display(Name = "客户类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public CRMCustomerType CustomerType { get; set; }

        /// <summary>
        /// 微信号
        /// </summary>
        public string WeChatNo { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { set; get; }

    }
}
